﻿using Abp.Events.Bus.Entities;

namespace AbpProjectTemplate.Components.Events.Entities
{
    public static class IEntityChangeEventHelperExtensions
    {
        public static void TriggerEntityChangeCheckEvent(this IEntityChangeEventHelper entityChangeEventHelper,
            AppEntityChangeEntry entityChangeEntry)
        {
            if (entityChangeEventHelper is AppEntityChangeEventHelper helper)
                helper.TriggerEntityChangeCheckEvent(entityChangeEntry);
        }
    }
}
